package com.taobao.apiclient;

public enum APP {

  DING_DONG("12337775", "84655af7c34edf28400da2a1642d87e8"),
  YOUDIAN("12442245", "80663ff0052dad65fa4bd4cc4aba071f"),
  YOUPING("21463090", "d044c1389f65e5adc46f8eeb8d8ceb86"),

  HD("21587911", "aee342fa13f0ace36678ba0d506e3633"),
  HD2("21781051", "62ef55f9728e083fe07f1db0671f74b1");
  private String appkey;
  private String appkeySec;

  public static APP getByAppKey(String appkey) {
    if (appkey != null) {
      if (appkey.equals("12337775")) {
        return DING_DONG;
      }
      if (appkey.equals("12442245")) {
        return YOUDIAN;
      }
      if (appkey.equals("21463090")) {
        return YOUPING;
      }
      if (appkey.equals("21587911")) {
        return HD;
      }
    }
    return DING_DONG;
  }

  private APP(String appkey, String appkeySec) {
    this.appkey = appkey;
    this.appkeySec = appkeySec;
  }

  public String getAppkey() {
    return appkey;
  }

  public void setAppkey(String appkey) {
    this.appkey = appkey;
  }

  public String getAppkeySec() {
    return appkeySec;
  }

  public void setAppkeySec(String appkeySec) {
    this.appkeySec = appkeySec;
  }

}
